﻿//#include "PHYSICS.h" 개망한 헤더파일 걍 버리자.
#include <stdlib.h>
#include "START.H"
#include "FUNC.H"

 int main()
{

 start_gui();
 line();
 start_relnote();
 line();
 start_bugs();
 line();
 start_comp();
 
 float m,t,j,v0,l,v;
 line();
 printf("Enter the mass of the ball [kg]:");
 scanf("%f",&m);
 
 line();
 printf("Enter the initial velocity [m/s]:");
 scanf("%f",&v0);
 
 line();
 printf("\n Welcome to LBS, Live Ball Session \n");
 printf("You can browse the status of a free-falling ball at the time you want.\n");
 
 for(j=0; ;j++){
	 line();
	 printf("T:");
	 scanf("%f",&t);
	 v = v0+9.8*t;
	 l = v0*t+0.5*9.8*t*t;
	 line();
	 printf("LBS @[T:%f after fall]\n",t);
	 printf("	  VELOCITY = %f [m/s]\n", v);
	 printf("	  FALLEN_LENGTH = %f [m]\n", l);
	 check_velocity();
	 
	 //printf("	  ABS(VECT_F) = %f [N]\n", ); 조금이따가 해보자.
	 //printf("	  KINETIC_ENERGY = %f [J]\n", );
	 system("pause");
 }

 return 0;
}